@if(\App\Models\Resource::count() > 0)
    <div class="card">
        <div class="card-body links">
            <div class="text-center">推荐</div>
            <hr>
            <div style="line-height: 2.5">
                @foreach(\App\Models\Resource::all() as $v)
                <a href="{{isset($v->link)?url($v->link):''}}" class="media">
                    <div class="media-body">
                        <span class="media-heading">{{$v->name ?? ''}}</span>
                    </div>
                </a>
                @endforeach
            </div>
        </div>
    </div>
@endif